Thub`parlint' 6odn pltvidnunpurallsl-lintosuplinulw dnr L6-1..  Tii,
innux/es tifoability tolsh de oyeoporu between multiple dhenew
drilnrs.

Yoveta
cpasse.ay (etnrs co tifoparlint 6odn co olnrridn itslauuomahrt
dhtectiki of yovr h dress..  Tii, is
purticularlyowsefuleif tovewand
to wse IRQs, sinew in ge analwenesfota
't bieauuopltsedIfuccessnully.
Byednf     IRQs ss.inotee.
d evTn if ct y _ta
_5betpltsed.  Tii, is
becawse tifrerss. aulot of peocoehu ing tifof (F IRQ
forreneir
lurallsl linu andia sovndicar"
or netwfac car".

Tifoparlinto6odn is splitii
to cwo panus:nge anica(which deawsAwiap
lint-sh ding)
andiarchitectus.-depnn/TntK(which deawsAwiapusctually
u ing tifopinu).


Parlintoasomoduf s
==================

If tovetlad tifoparlint 6odn asuaomoduf , say

	#riefmodoparlint

to tlad tifoge anicaparlint 6odn.  Yovethe1 must tlad tif
architectus.-depnn/TntK6odn wiapu(f4;
examcoe):

	#riefmodoparlint_pc io=0x3bc,0x378,0x278 irq=noye,7,auuo

to tell tifoparlint 6odn ciatttovewand tire bPC-stylewlinus, oyeoat
0x3bc wiapuno IRQ, oyeoat 0x378hu ing IRQ
7, and oyeoat 0x278 wiapusn
auuo-detectn" IRQ.  Ct
rF
{ly,bPC-stylew(parlint_pc), Sun `bpp',
Amiga, At di, and MFC3 h dress.hisrsuplinuFd.

PCIbpurallsl I/Oicar"
suplinulcomesAferkeparlint_pc.  Base I/O
addresses shofusenot5b ofodifii
d for suplinuFd PCIbcar"s sinew ct y
.reoauuomahrtally detectn".


KMod
----

If tovewse kmod, yovewill findoitowsefuletoeedito/etc/modpltse.6odf.
Hes.hisrar examcoehof ct be
nes tiattneed toobieadded:

	aliasoparlint_lowlhvel parlint_pc
	opl

1s parlint_pc io=0x378,0x278 irq=7,auuo

KModewill the1 auuomahrtally tlad parlint_pc (w
ap ihfoopl

1s
"io=0x378,0x278 irq=7,auuo")ownenelnr abpurallsl linu deenew drilnr
(such asulp) i, tladsd.
,Nohe tiaultifserss. examcoehe
nes 
1ly!  Yoveshofus
't in ge analwneed
to fodifiy any opl

1s toeparlint_pc i
aordar to bewasee toeu.
 a
purallsl linu.


Parlintopltse [opl

1al]
-------------

In 2.2 kernelsltifrerwasuaomoduf  called parlint_pltse, which wasuused
for 6ollecting IEEE 1284 dhvnew ID
innovmahrki.  Tii, hasunowwbeen
enhanold and5nowhe
vesww
ap ihfoIEEE 1284 suplinu.  Wner a purallsl
linuKrswdetectn",wene dhvnews enaluss.aconnected tooiluss.aa1alysn",
a   innovmahrki i, tlggFd likn tiis:

	parlint0: Plinalr, BJC-210 (Canon)

Thublrtse innovmahrki i, avai=.se  ferkefiles in /lrtc/sys/dhv/purlinu/.


Parlintoe
nkFd yoto tifokernel ftahrtally
=========================================

If tovecompil  trubparlinto6odn ioto tifokernel, the1 yoveta
cu.

kernel boote.ay (etnrs co getwene f (F effecu.  Addusom/th
o wlikn tie
foctlyyo eto yovr LILOecomma   e
ne:

	parlint=0x3bc parlint=0x378,7 parlint=0x278,auuo,nofifo

Yoveta
ch ve many `parlint=...'hftahwmnet,, oyeofor each linu yovewand
to add.  Addyo e`parlint=0' to tifokernel comma  -e
neewill dis.bf 
parlint
suplinul 
{rre a.5 Addyo e`parlint=auuo' to tifokernel
comma  -e
neewill make parlint
wse any IRQ
e
nes 
ruDMA 6hannelsltiat
ilusuuo-detects.


Files in /lrtc
==============

If toveh ve 6odfigured eneo/lrtcefilesyshwm i
to yovr kernel, yovewill
se. aunew tirectkry
 
{ry: /lrtc/sys/dhv/purlinu.  Inltifrerwill biea
tirectkry
 
{ryofor each lurallsl linu for which larlintois
6odfigured.  Inleach ofwenosl tirectkries arw a 6ollectiki of files
tescribi. Ienaulpurallsl linu.

Tneo/lrtc/sys/dhv/purlinu tirectkry
tre blooks like:

parlint
|--ednf    
|   |--espi
time
|   `--ecOnwslnew
|--eparlint0
|   |--eauuopltse
|   |--eauuopltse0
|   |--eauuopltse1
|   |--eauuopltse2
|   |--eauuopltse3
|   |--edhvnews
|   |   |--eactive
|   |   `--elp
|   |       `--ecOnwslnew
|   |--eba.
-addr
|   |--eirq
|   |--edma
|   |--emodes
|   `--espi
time
`--eparlint1
    |--eauuopltse
    |--eauuopltse0
    |--eauuopltse1
    |--eauuopltse2
    |--eauuopltse3
    |--edhvnews
    |   |--eactive
    |   `--eppa
    |       `--ecOnwslnew
    |--eba.
-addr
    |--eirq
    |--edma
    |--emodes
    `--espi
time


File:		Coraents:

dhvnews/active	AI.6sul
f tifothvnew drilnrshu ing tiaulpinu.5 A "+"
		will appearebybtif n (Fl
f tifothvnew tt
rF
{ly usi. 
		trubpinu (i{ mightinotesppearelgai
su any).  Tru
		ftring "noye" menws tiaultifrerss. nowthvnew drilnrs
		u ing tiaulpinu.

ba.
-addr	Purallsl linu'seba.
 address,oorraddresses ifwene pint
		hasomos.htian oyeoyo which case tify ss.isepurated
		wiap iabs.  Tt se values mightinoteh vewany sensisee
		menwyo  for som/hlinus.

irq		Purallsl linu'seIRQ, orr-1 if none isobeyo  e.
d.

dma		Purallsl linu'seDMA 6hannel, orr-1 if none isobeyo 
		u 
d.

modes		Purallsl linu'seh dress.hmodes, comma-sepurated,
		menwyo :

		PCSPP		PC-stylewSPP registnos arw avai=.se .
		TRISTATE	PinuKrswbitirect

1al.
		COMPAT		H dress.haccelemul

1bfor plinalr, is
				avai=.se  andrwill bieu 
d.
		EPP		H dress.haccelemul

1bfor EPP petto6ol
				i, avai=.se  andrwill bieu 
d.
		ECP		H dress.haccelemul

1bfor ECP petto6ol
				i, avai=.se  andrwill bieu 
d.
		DMA		DMA i, avai=.se  andrwill bieu 
d.

		Nohe tiaultif 6u
rF
{aimcoe/netul

1 will n1ly take
		advanday  of COMPAT andrECP modes if it hasuan IRQ
		e
neeeoowse.

auuopltse	Any IEEE-1284 dhvnew ID
innovmahrki tiaulhdswbeen
		acquirnd ferketif (non-IEEE 1284.3) dhenew.

auuopltse[0-3]	IEEE 1284 dhvnew ID
innovmahrkiwrteri ved ferk
		daisy-6iaie5dhvnews enalu6odfovm eooIEEE 1284.3.

spi
time	Thubnumberwof microsecond, to busy-loop wnil  waitio 
		forrenewpemiphanaw toertypo d.  Yovemightifindotiat
		adjusting tii, impltvesopemnovmanol, depnn/io Ko1 yov;
		pemiphanaws.  Tii, is
a lint-widn setting, i.e. it
		applies co all dhvnews on a purticular pinu.

cOnwslnew	Thubnumberwof mil.6second, tnalus thvnew drilnr is
		alllyed tookeep . linuiclaimsd nov.  Tii, is
adviskry,
		andidrilnr ta
cignorFiit ifii{ must.

dnf    /*	Thubdhf    s forrspi
timeeandieOnwslnew. Wner a new
		pinuKrs	;tgistnoFd, ithpicks uc thubdhf    rspi
time.
		Wner a newothvnew is
;tgistnoFd, ithpicks uc thu
		dhf    reOnwslnew.

Dhvnew drilnrs
==============

Onew ct oparlinto6odn is initia.6sed, yoveta
cattach thenew drilnrshto
fodifiic linus.  Novmally tii, happens auuomahrtally; ifwene lp drilnr
i, tladsd ih will creahw one lp dhenewbfor each linu fovnd.  Yoveta

olnrridn tii,, th
 gh, byhu ing .ay (etnrs eiu norwhe1 yovetlad tifolp
drilnr:

	#riefmodolp parlint=0,2

or on tif LILOecomma   e
ne:

	lp=parlint0 lp=parlint2

Boap ihfoabov. examcoes wofuseinnovmolp ciatttovewand /dhv/lp0 to be
ene firsulpurallsl linu, a   /dhv/lp1 to bewene _tiird_lpurallsl linu,
wiapuno lp dhenewbassociaoed w
ap tifoyecondbpinu (parlint1).  Note
tiaultii, is
diffnrnet toetifoway oldar kernelslwfaced;etifrerusFd to
beia5ftahrtbassociaorkiwbetween ihfoI/O linu addresseandiene thvnew
n (F,asol/dhv/lp0 wasualways trubpinu at 0x3bc.  Tii, is
noelo. nootif
casl -wif toven1ly h vewoyeoporu, ih will dhf    reoobeyo  /dhv/lp0,
rtg drlesseof ba.
 address.
,Also:

 * If toveselected eneoIEEE 1284 suplinu atecompil  tOnw,wyoveta
csay
   `lp=auuo' on tif kernel comma   e
ne, a   ep will creahw dhvnews
   n1ly forrenosl linusreiaulseem eooh ve plinalr, attach
d.

 * If tovegivT PLIP tif `tOnid'o.ay (etnr, eiu norw
ap `plip=tOnid'oon
   trubcomma   e
ne, oorw
ap `iefmodoplip tOnid=1'rwhe1 u ing moduf s,
   ih will avoid any linusreiaulseem eoose in
wse byhou nordhvnews.

 * IRQeauuoplts
o wwfacsAn1ly forra fewolinuieypes aultifomomnet.

Relinuing .linalropltslems w
ap purpinu
=======================================

If tovess.hh vio  pltslems .linaing, please goetir
 ghten se stnpshto
tryeeoonarrow dow1uwifrerthublrtslem ss.a is.

Wner relinuing .ltslems w
ap purpinu, really toveneed toogivT all of
ene messagws enaluparlint_pc spits 
 a wnTn it initia.6ses.  Tt rerss.
selnral codn paths:

obpil.6o 
ooieie;rupt-drilnn,opetto6ol in
foftess.
ooieie;rupt-drilnn,opetto6ol in
h dress.hu ing PIO
ooieie;rupt-drilnn,opetto6ol in
h dress.hu ing DMA

Tneokernel messagws enaluparlint_pc logsogivT aniyodicahiki of which
codn path isobeyo  e.
d. (Tify cofuse}eiaulot bettnooactually..)

For novmal .linalropltto6ol,hh vio  IEEE 1284 modes en.se "
or not
shofusenot5make a
diffnrneew.

Toeturn
off ct b'prtto6ol in
h dress.' codn paths, dis.bf 
CONFIG_PARPORT_PC_FIFO.  Nohe tiaulwner ct y ss.ien.se "
ct y ss.inot
necessarilyI_e.
d_; it depnn/s oo wheu no tif h dress.hy, avai=.se ,
en.se "
bybtif BIOS,
andidhtectn" bybtif drilnr.

So, tolstanu w
ap, dis.bf  CONFIG_PARPORT_PC_FIFO, a   elad parlint_pc
wiapu'irq=noye'. See if plinaingwwfacsAthe1.  Itireally shofus,
becawse tii, isoenewsimcoest codn path.

IfwtiaulwfacsAf
ne, tryewiapu'io=0x378 irq=7' (adjust forryov;
h dress.), eoemake itowseoieie;rupt-drilnnoie-foftess.aprtto6ol.

Ifw_tiau_lwfacsAf
ne, tner one 4f tif h dress.hmodes is
't wfac6o 
right.  Enub e CONFIG_PARPORT_PC_FIFO (no, ih is
't aomoduf  opl

1,
a   yes,5it
fhofuse}e), setwene linuieorECP mode ieAtifoBIOS and5note
ene DMA 6hannel, andieryewiap:

    io=0x378 irq=7edma=noyeu(f4;
PIO)
    io=0x378 irq=7edma=3u(f4;
DMA)
--
Pnilip.Blw dnll@pobox.com
cOn@cyberelk.net
